import Airport.*;


public class TestMainClass {

	public static void main(String[] args) {

		
		Airport aport = new Airport(3);
		aport.newFlight(5);		
		
		System.out.println(aport.toString());
		aport.cancelFlight(aport.getFlights()[0].getId());
		System.out.println(aport.toString());
		aport.delayFlight(aport.getFlights()[0].getId());
		System.out.println(aport.toString());
		aport.openFlight(aport.getFlights()[0].getId());
		System.out.println(aport.toString());
		
		System.out.println();
		
		aport.newFlight(3);
		aport.newFlight(4);
		System.out.println(aport.toString());
		
		System.out.println();
		
		aport.removeFlight(aport.getFlights()[2].getId());
		System.out.println(aport.toString());
		
		System.out.println();
		
		aport.addPassenger(0, new Passenger("AAA"));
		aport.addPassenger(0, new Passenger("BBB"));
		aport.addPassenger(0, new Passenger("CCC"));
		
		aport.addPassenger(1, new Passenger("DDD"));
		aport.addPassenger(1, new Passenger("EEE"));
		
		System.out.println(aport.toString());
		System.out.println();
		
		aport.cancelFlight(1);
		aport.addPassenger(1, new Passenger("QQQ"));
		System.out.println(aport.toString());
	}
	
	

}
